package me.zhengjie.modules.enrstu.service.mapstruct;

import me.zhengjie.base.BaseMapper;
import me.zhengjie.modules.enrstu.service.dto.SchoolDistrictDto;
import me.zhengjie.modules.enrstu.domain.SchoolDistrict;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

/**
 * @website https://eladmin.vip
 * @author yyx
 * @date 2024-10-23
 **/
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SchoolDistrictMapper extends BaseMapper<SchoolDistrictDto, SchoolDistrict> {

    SchoolDistrictDto toDto(SchoolDistrict entity);

    List<SchoolDistrictDto> toDto(List<SchoolDistrict> entityList);
}
